package service

import (
	"gitee.com/ling1314/origin-utility/model"
	"gitee.com/ling1314/origin-utility/modules/repository"
)

type settingService struct {
}

func (s settingService) SaveTopology(str string) (err error) {
	err = repository.TopologyRepository.Save(str)
	return
}

func (s settingService) GetTopology() (m model.Topology, err error) {
	return repository.TopologyRepository.Get()
}
